﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Workflow.ComponentModel;

namespace MNS.Activities.Condition
{
    [DisplayName("Custom Activity Condition")]
    public class CustomActivityCondition : ActivityCondition
    {
        public override bool Evaluate(Activity activity, IServiceProvider provider)
        {
            return (this.customCondition.Equals("foo", StringComparison.CurrentCultureIgnoreCase));
        }

        private string customCondition = string.Empty;
        public string CustomCondition
        {
            get { return this.customCondition; }
            set { this.customCondition = value; }
        }
    }
}
